package com.naiterui.ehp.bs.wechat.protocol.result;

import java.io.Serializable;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @Description: 微信公众号用户信息
 * @Author: zhoupeipei
 * @Date： 2019/1/18 
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserInfo extends BaseResult implements Serializable {
    private static final long serialVersionUID = 5041859334035496303L;
    @JsonProperty("openid")
    private String openId;
    @JsonProperty("unionid")
    private String unionId;
    @JsonProperty("nickname")
    private String nickName;
    @JsonProperty("sex")
    private Integer gender;
    private String country;
    private String province;
    private String city;
    private Integer errcode;
    @JsonProperty("headimgurl")
    private String headUrl;
    private Integer subscribe;
    @JsonProperty("subscribe_time")
    private Long subscribeTime;
    @JsonProperty("subscribe_scene")
    private String subscribeScene;
    @JsonProperty("qr_scene")
    private String qrScene;
    @JsonProperty("qr_scene_str")
    private String qrSceneStr;
    @JsonProperty("groupid")
    private String groupId;
    //@JsonProperty("tagid_list")
    //private String tagIdList;

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getHeadUrl() {
        return headUrl;
    }

    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }

    public Integer getSubscribe() {
        return subscribe;
    }

    public void setSubscribe(Integer subscribe) {
        this.subscribe = subscribe;
    }

    public Long getSubscribeTime() {
        return subscribeTime;
    }

    public void setSubscribeTime(Long subscribeTime) {
        this.subscribeTime = subscribeTime;
    }

    public String getSubscribeScene() {
        return subscribeScene;
    }

    public void setSubscribeScene(String subscribeScene) {
        this.subscribeScene = subscribeScene;
    }

    public String getQrScene() {
        return qrScene;
    }

    public void setQrScene(String qrScene) {
        this.qrScene = qrScene;
    }

    public String getQrSceneStr() {
        return qrSceneStr;
    }

    public void setQrSceneStr(String qrSceneStr) {
        this.qrSceneStr = qrSceneStr;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    //public String getTagIdList() {
    //    return tagIdList;
    //}
    //
    //public void setTagIdList(String tagIdList) {
    //    this.tagIdList = tagIdList;
    //}

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
